{
  "properties" : { },
  "id" : "5a8f73a0d511461b9802fb76258a521e",
  "script" : null,
  "groupId" : "55e975ac866f47a089e829cc1cdc3cb5",
  "name" : "查询巡检规则列表",
  "createTime" : 1727071115391,
  "updateTime" : 1725950920305,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "page",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\r\n\"size\":1,\r\n\"current\":1,\r\n\"name\": \"ftp33\"\r\n\r\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"total\": 0,\n        \"current\": 1,\n        \"size\": 1,\n        \"records\": []\n    }\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  }
}
================================
var sql="""
 select * from ndmp_audit_rule
        <where>
            <if test="body.name !=null and body.name !='' ">
                AND name LIKE CONCAT('%',#{body.name},'%')
            </if>
            <if test="body.description !=null and body.description !='' ">
                AND description LIKE CONCAT('%',#{body.description},'%')
            </if>
            <if test="body.expression !=null and body.expression !='' ">
                AND expression LIKE CONCAT('%',#{body.expression},'%')
            </if>
        </where>
"""

var res =db.page(sql,body.size ,body.current-1)

if (res.records==null){
    res.records=new ArrayList()
}
return res